import request from '@/utils/request'

export function AddDepartmentsList(data) {
  return request.post('/company/department', data)
}

export function GetDepartmentsList() {
  return request.get('/company/department')
}
export function ChangeDepartmentsList(id, data) {
  return request.put('/company/department/' + id, data)
}
export function DelDepartmentsList(id) {
  return request.delete('/company/department/' + id)
}
// 查询部门详情
export function OneDepartmentsList(id) {
  return request.get('/company/department/' + id)
}
// 获取用户简单列表
export function GetSysUserSimple() {
  return request.get('/sys/user/simple')
}
